<{assign var="tpl_page_title" value="订单列表"}>
<{include file="mobile/block/header.html"}>
<header class="control">
	<i class="left"><a href="<{if $pager.backurl}><{$pager.backurl}><{else}><{link ctl='mobile/index'}><{/if}>" id="gobackIco"></a></i>
    <div class="title">订单列表</div>
    <i class="right"></i>
</header>

<div id="htSearch-bar">
	<ul>
    	<li class="list <{if !$pager.type}>on<{/if}>"><a href="<{link ctl='mobile/ucenter/jforder:index'}>"><i>全部</i></a></li>
    	<li class="list <{if $pager.type=='unpay'}>on<{/if}>"><a href="<{link ctl='mobile/ucenter/jforder:index' arg0='unpay'}>"><i>未付款</i></a></li>
        <li class="list <{if $pager.type=='payed'}>on<{/if}>"><a href="<{link ctl='mobile/ucenter/jforder:index' arg0='payed'}>"><i>已付款</i></a></li>
        <li class="list <{if $pager.type=='ship'}>on<{/if}>"><a href="<{link ctl='mobile/ucenter/jforder:index' arg0='ship'}>"><i>已发货</i></a></li>
        <li class="list <{if $pager.type=='finish'}>on<{/if}>"><a href="<{link ctl='mobile/ucenter/jforder:index' arg0='finish'}>"><i>已完成</i></a></li>
    </ul>
</div>

<section id="" class="page_center_box">
	<ul class="mineOrder_box mt10">
    	<{foreach $items as $order}>
    
            <li class="mineOrder_list">
                <div class="title">
                    <p class="fl"><i></i>卖家：<{$shop_list[$order.shop_id].name|default:'--'}></p>
                    <a href="<{link ctl='mobile/ucenter/jforder:detail' arg0=$order.order_no}>" class="fr xiangqing">订单详情</a>
                </div>
                <div class="nr">
                	<ul>
                    	<li class="list">
                      
                        	<img src="<{$pager.img}>/<{$order.photo}>" photo="<{$pager.img}>/<{$order.photo}>">
                            <div class="wz">
                             
                                    <p class="bt"><{$order.product_name}></p>
                                    <p class="black9">单价：<{$order.product_jfprice}>积分&nbsp;&nbsp;&nbsp;&nbsp;数量：<{$order.product_num}></p>
                                    <{if $order.spec_id}> <p class="black9">规格：<{$order.spec_name}></p><{/if}>
                                
                            </div>
                           
                            <div class="clear"></div>
                        </li>
                    </ul>
                    <div class="wz wz_pub">
                    	<p class="black3">总价：<span class="price pointcl"><{$order.jfamount}>积分</span><em>（运费：包邮）</em></p>
                        <p class="black9">收货地址：<{$order.addr}></p>
                    	<p class="black9">联系电话：<{$order.mobile}></p>
                        <div class="state_box">
                        
                            <{if $order.order_status == 2}>
                            订单完成
                             <{elseif $order.order_status == 1}>
                             <a href="<{link ctl='mobile/ucenter/jforder:update' arg0='ship' arg1=$order.order_no}>" mini-act="确认收货" mini-confirm="确定已经收到货后，再确认收货" class="state bg_3">确认收货</a>
                            <{elseif $order.order_status < 0}>
                            订单已经取消 
                            <{elseif empty($order.pay_status)}>
                            <a href="<{link ctl='mobile/ucenter/jforder:update' arg0='cancel' arg1=$order.order_no}>" mini-act="取消订单" mini-confirm="您确定要取消该订单" class="state bg_2">取消订单</a>
                            <{else}>
                            等待发货
                            <{/if}>
              
                            <{if $order.order_status < 2 && $order.order_status >=0}>
                                <{if $order.pay_status}>
                                已经支付
                                <{else}>
                                <a href="<{link ctl='mobile/ucenter/jforder:payment' arg0=$order.order_no}>" class="state bg_1 ml10">立即支付</a>
                                <{/if}>
                            <{/if}>
                        </div>
                    </div>
                </div>
            </li>
        <{foreachelse}>
            <div class="loginInfor_tishi">暂无记录信息</div>
        <{/foreach}>
        
    </ul>
</section>

</body>
</html>
